package br.com.escola.ajax;

import java.sql.SQLException;

import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.Result;

public class AjaxAction {

	private Long id;

	@Action(value = "finalizaTarefa", results = { 
			@Result(name = "ok", type = "httpheader", params = {"status", "200" }) 
	})
	public String execute() throws SQLException {
		//new AlunoDAOImpl().finaliza(id);
		return "ok";
	}

	public void setId(Long id) {
		this.id = id;
	}

}
